package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Bankcard;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BankcardMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Bankcard record);

    Bankcard selectByPrimaryKey(Long id);

    List<Bankcard> selectAll();

    int updateByPrimaryKey(Bankcard record);

    List<Bankcard> selectAllByUser(Long id);

    void updateMoney(@Param("id") Long id, @Param("balance") Double balance);

    Bankcard selectCard(@Param("card") Integer card,@Param("cardname") String cardname);

    Integer selectCount();

    Bankcard selectBankcardName(Long id);
}